﻿<%@ Page Language="C#" MasterPageFile="~/SMS.master" AutoEventWireup="true" CodeFile="ToolApplication.aspx.cs" Inherits="ToolApplication" Title="Untitled Page" %>

<%@ Register assembly="Infragistics2.WebUI.WebDateChooser.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.WebSchedule" tagprefix="igsch" %>

<%@ Register assembly="Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>

<%@ Register assembly="Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>

<%@ Register assembly="Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7.3.20073.38, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <table style="width: 100%; height: 100%; text-align: left">
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label15" runat="server" Text="施工单位："></asp:Label>
            </td>
            <td style="width: 100px">
                <asp:TextBox ID="TxtConstructionCorp" runat="server" Width="149px"></asp:TextBox>
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                &nbsp;</td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label18" runat="server" Text="施工期间：" Width="92px"></asp:Label>
            </td>
            <td style="width: 100px">
                <asp:Label ID="Label19" runat="server" Text="开始日期"></asp:Label>
            </td>
            <td style="width: 100px">
                
                <igsch:WebDateChooser ID="StartDate" runat="server" Value="">
                </igsch:WebDateChooser>
                
            </td>
            <td style="width: 100px">
                <asp:Label ID="Label20" runat="server" Text="结束日期"></asp:Label>
            </td>
            <td style="width: 100px">

                <igsch:WebDateChooser ID="FinishDate" runat="server">
                </igsch:WebDateChooser>

            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label21" runat="server" Text="工具清单："></asp:Label>
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
        <td>
        </td>
        <td colspan="5">
        <Template>

            <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px" 
                Width="100%">
                <Bands>
                    <igtbl:UltraGridBand>
                        <AddNewRow View="NotSet" Visible="NotSet">
                        </AddNewRow>
                        <Columns>
                            <igtbl:TemplatedColumn>
                                <CellTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="Button2_Click1" OnClientClick="return confirm('&#20320;&#30830;&#23450;&#35201;&#21024;&#38500;&#21527;&#65311;&#23558;&#19981;&#21487;&#24674;&#22797;!');">删除</asp:LinkButton>
                                    &nbsp;
                                </CellTemplate>
                            </igtbl:TemplatedColumn>
                        </Columns>
                    </igtbl:UltraGridBand>
                </Bands>
               <DisplayLayout AllowAddNewDefault="Yes" AllowColSizingDefault="Free" 
                    AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes" 
                    AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" 
                    BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" 
                    Name="UltraWebGrid1" RowHeightDefault="20px" SelectTypeRowDefault="Extended" 
                    StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" 
                    TableLayout="Fixed" Version="4.00">
                    <GroupByBox>
                        <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
                        </BoxStyle>
                    </GroupByBox>
                    <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                    </GroupByRowStyleDefault>
                    <ActivationObject BorderColor="" BorderWidth="">
                    </ActivationObject>
                    <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                            WidthTop="1px" />
                    </FooterStyleDefault>
                    <AddNewRowDefault Visible="Yes">
                    </AddNewRowDefault>
                    <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" 
                        BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                        <BorderDetails ColorLeft="Window" ColorTop="Window" />
                        <Padding Left="3px" />
                    </RowStyleDefault>
                    <FilterOptionsDefault>
                        <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" 
                            BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" 
                            Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">
                            <Padding Left="2px" />
                        </FilterOperandDropDownStyle>
                        <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                        </FilterHighlightRowStyle>
                        <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" 
                            BorderWidth="1px" CustomRules="overflow:auto;" 
                            Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" Height="300px" 
                            Width="200px">
                            <Padding Left="2px" />
                        </FilterDropDownStyle>
                    </FilterOptionsDefault>
                    <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" 
                        HorizontalAlign="Left">
                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                            WidthTop="1px" />
                    </HeaderStyleDefault>
                    <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                    </EditCellStyleDefault>
                    <FrameStyle BackColor="Window" BorderColor="InactiveCaption" 
                        BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" 
                        Font-Size="8.25pt" Height="200px" Width="100%">
                    </FrameStyle>
                    <Pager AllowPaging="True" MinimumPagesForDisplay="2">
                        <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                            WidthTop="1px" />
                        </PagerStyle>
                    </Pager>
                    <AddNewBox Hidden="False" Prompt="添加">
                        <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" 
                            BorderWidth="1px">
                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                                WidthTop="1px" />
                        </BoxStyle>
                    </AddNewBox>
                </DisplayLayout>
            </igtbl:UltraWebGrid>
        </Template>

        </td>
        </tr>
        <tr>
            <td style="width: 100px">
                &nbsp;</td>
            <td style="width: 100px">
               <asp:LinkButton ID="LinkButton1" runat="server" 
                    PostBackUrl="~/ToolSheetHistory.aspx">历史查看</asp:LinkButton>
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
               <asp:Button ID="Button2" runat="server"
                    Text="提交" onclick="Button2_Click" />
           </td>
            <td style="width: 100px">
            </td>
        </tr>
    </table>
            <asp:ObjectDataSource ID="toolsDS" runat="server" DeleteMethod="Delete" 
                InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
                SelectMethod="GetData" 
                TypeName="ToolApplicationDataSetTableAdapters.ToolListTableAdapter" 
                UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_ToolSheetID" Type="Int32" />
                    <asp:Parameter Name="Original_ToolsSerial" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="ToolsName" Type="String" />
                    <asp:Parameter Name="ToolsQuantity" Type="Int32" />
                    <asp:Parameter Name="Original_ToolSheetID" Type="Int32" />
                    <asp:Parameter Name="Original_ToolsSerial" Type="Int32" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="ToolSheetID" Type="Int32" />
                    <asp:Parameter Name="ToolsSerial" Type="Int32" />
                    <asp:Parameter Name="ToolsName" Type="String" />
                    <asp:Parameter Name="ToolsQuantity" Type="Int32" />
                </InsertParameters>
            </asp:ObjectDataSource>
        </asp:Content>

